Flexible order structure

ABSTRACT

An order processing system includes an order structure in which an order includes multiple objects representing items being purchased, shipping methods, payment parameters, and other parts of an order. The order can include one or more of each of the types of objects. Items in the order can be divided among shipping methods and payment mechanisms using a relationship model to describe the relationships between the different types of objects. Shipping methods and payment mechanisms also can be related. The order may be represented as an order object, which represents the order and can be related to particular shipping methods and payment mechanisms. Relationship objects describe the relationships between objects. Relationship objects can use different relationship types to characterize the extent of the specified relationship.

[0001] The present application is based on prior U.S. provisional application No. 60/309,403, filed on Aug. 1, 2001, which is incorporated herein by reference, and from which priority is claimed.

FIELD OF THE INVENTION

[0002] This invention relates to computer systems and, more particularly, to systems for facilitating electronic commerce.

BACKGROUND OF THE INVENTION

[0003] With electronic commerce systems, users interact with the system over a network, such as the WorldWide Web or some other public or private network. As electronic commerce systems become more popular and more sophisticated, users will expect the ability to replicate the types of flexibility and features in fulfilling an order that exist with “brick and mortar” stores and, in many cases, will want additional order features. In the business-to-business context, for example, buyers will want a system that works with their purchasing requirements and procedures.

[0004] One area in which existing electronic commerce systems do not provide satisfactory mechanisms is in providing flexibility to divide an order in multiple ways, based on different parameters. For example, an order may contain multiple items and the buyer may want to have those items shipped to different locations. Also, a buyer may want to pay for an order using different payment mechanisms. Existing systems provide only a limited ability to divide an order in this and other ways.

SUMMARY OF THE INVENTION

[0005] The present invention uses a relationship model to describe how different parts of an order in an electronic commerce system relate to each other. An order processing system permits a buyer (user) to purchase multiple items as part of a single order. In a typical example, parts of the order can be shipped to different locations and the buyer can pay for the order using multiple payment mechanisms. The order processing system provides the buyer with flexibility as to how to ship each item and how to pay and account for different parts of the order, such as the product costs for some or all of the items, or the shipping costs associated with various shipping methods.

[0006] An order includes different types of objects, such as item objects, shipping objects, payment objects, cost center objects, and/or handling objects. The order can include one or more of each of these or other types of order-related objects (or none of one or more types of order-related objects that are not needed or not used in a particular application). An order may be represented by an order object, which represents the order rather than specific items within the order.

[0007] Relationship objects describe a relationship between two (or more) of these objects. Thus, for example, a relationship object may describe a relationship between a particular item object and a particular shipping object, where the shipping object would characterize how some or all of the units within the item object will be shipped. The different types of objects can have relationships with one or more objects of another type and with one or more different types of objects. The objects (other than item objects, in a typical example) also can have relationships with the order object, to characterize the order to the extent not otherwise characterized by relationships with other order-related objects.

[0008] Different relationship types can be used to characterize the extent of the relationship. In one embodiment, a relationship can exist for a specified quantity of units, an amount, or a percentage of the price. Also, a relationship can exist for the remaining items or amount beyond those items or amounts for which specified quantities, amounts, or percentages have been described. Relationship types also can be used to characterize other cost items, such as taxes.

BRIEF DESCRIPTION OF THE DRAWINGS

[0009]FIG. 1 is a block diagram illustrating a structure for an order according to an embodiment of the present invention.

[0010]FIG. 2 is a diagram illustrating a structure for use with an embodiment of the present invention.

[0011]FIG. 3 is a diagram illustrating a structure for use with an embodiment of the present invention.

[0012]FIG. 4 is a flow diagram of an embodiment of the present invention.

[0013]FIGS. 5a and 5 b are flow diagrams of an embodiment of the present invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

[0014] As shown in FIG. 1, an order 140 can include multiple objects representing different aspects of an order. In this example, the order includes item objects 110, shipping objects 120, and payment objects 130. Although more than one of each of these objects is shown, it should be understood that fewer or more of each of these objects could be included, as appropriate. In one embodiment, order 140 is an object. Order object 140 represents the order itself, including the items in the order and costs associated with the order.

[0015] An item object 110 relates to a single item that is being purchased and preferably relates to a single SKU or type of item. The item object can include one or more units of that item, and identifies the item, the quantity of units in the item, and the cost per item. Alternatively, the item object can include related items or SKUs, such as items of the same style but different colors, sizes, or other characteristics. In this alternative case, the item object may also identify one or more of the characteristics of each of the items.

[0016] A shipping object 120 relates to a specific shipping method used to send goods to a specific address. The shipping object can reference the address to which the goods are to be shipped and the specific shipping method, such as regular mail, overnight mail, Federal Express, or any other type of delivery service that is available from the seller. The shipping cost may be included or referenced in the shipping object. The shipping object can relate to delivery of hard goods or to electronic delivery of software or some other electronic file. With electronic delivery, the address may be, for example, an email address or the electronic goods may be downloaded through a browser or by any other technique.

[0017] A payment object 130 relates to and identifies a specific payment mechanism. The payment mechanism can be a specific credit card, a gift certificate, store credit, store points (such as from a frequent shopper program), a request for an invoice, electronic cash, or any other type of payment that the seller accepts. In one embodiment, the payment object references identifying information about the payment mechanism, such as the relevant credit card information.

[0018] In addition to (or other than) item objects, shipping objects, and payment objects, the order can include other types of objects, such as handling objects, which relate to handling charges, or cost center objects, which relate to a specific cost center of the buyer to which a portion of the order will be allocated. Handling charges may be incurred or may vary, for example, if the item is to be gift-wrapped or requires other special packaging.

[0019] The order also includes relationships 150. In a preferred embodiment, relationships 150 are objects that relate together two objects of two different types.

[0020] An item object can be related to a shipping object, to describe a shipping method to be used for some or all of the units included in that item. An item object also can be related to a payment object, to describe a payment mechanism for all or part of that item. A shipping object that relates to a specific item object can relate to different units and/or a different number of units within the item object than a payment object that relates to the same item object. Where cost center or handling objects are included, they also could relate to an item object. Alternatively, handling instructions and any associated costs can be contained within or be part of a shipping object.

[0021] A shipping object, in addition to relating to an item object, can relate to a payment object, to describe how the shipping costs relating to that shipping method will be paid. A shipping object also can relate to an order object, to describe how all or part of an order will be shipped. Alternatively, the order processing system can be structured so that shipping objects do not relate to the order. Where there are one or more shipping objects that relate to one or more item objects, and one or more shipping objects that relate to the order object, the shipping objects that relate to item objects are given priority in determining how an item will be shipped.

[0022] A payment object can relate to the order object, and not just to shipping and item objects. The order processing system considers relationships to item objects and shipping objects before it considers relationships to the order. Thus, preference for paying for items or shipping costs is given first to payment objects that relate to item objects or shipping objects, and then (to the extent there are amounts not accounted for) to payment objects that relate to the order object. In one embodiment, handling objects are treated in a similar manner to shipping objects and cost center objects are treated in a similar manner to payment objects.

[0023] Relationship objects 150 identify the specific objects that they relate together. In one embodiment, a subclass of a basic relationship object is created for each combination of objects that could be related by a relationship object. Thus, an order processing system with item objects, shipping objects, payment objects, and an order object would have a ShippingObject/Item subclass, a PaymentObject/Item subclass, a PaymentObject/ShippingObject subclass, and a PaymentObject/Order subclass in one embodiment, and would have these subclasses plus a ShippingObject/Order subclass in another embodiment.

[0024] As illustrated in FIG. 2, a relationship object 200 includes a relationship identifier 210, identifications 215, 220 of the objects being related, an identification of the type of relationship 230, and the quantity or amount involved in the relationship 240. In one embodiment, the identification of the objects being related takes the form of an identifier or link to each of those objects. Those objects, likewise, include identifiers or links to each relationship object that relates them to another object. The quantity or amount 240 corresponds to the number of units, dollar amount, or percentage covered by the relationship. With relationship types in the form of “______Remaining,” discussed below, the quantity or amount field may be undefined, not regarded, or given a special value.

[0025] For relationship objects that relate an item object and a shipping object, the relationship type can be ShippingQuantity, with a value representing the number of units from the item object that are being shipped by the shipping method specified in that shipping object. Or, the relationship type can be ShippingQuantityRemaining, which indicates that the shipping method specified in that shipping object should be used with any units in the item not covered by a shipping object that is related through a relationship object with the ShippingQuantity relationship type.

[0026] For relationship objects that relate an item object and a payment object, the relationship type can be PaymentAmount, PaymentQuantity, PaymentPercentage, or PaymentAmountRemaining. The PaymentAmount relationship type has a value representing the amount of payment for the related item object to be obtained from the payment mechanism specified in the related payment object. The PaymentQuantity relationship type has a value representing the number of units from the item object for which payment is to be obtained from the specified payment mechanism. Similarly, the PaymentPercentage relationship type has a value representing the percentage of the cost of the item object to be obtained from the specified payment mechanism. Preferably, the PaymentAmount, PaymentQuantity, and PaymentPercentage types are given different priorities, for determining the amount allocated to each payment object if the payment objects related to a specific item specify more than the total amount for that item. For example, the highest priority may go to a relationship type of PaymentAmount, then to PaymentPercentage, and then to PaymentQuantity. Thus, a PaymentAmount relationship is applied first, then a PaymentPercentage relationship, then a PaymentQuantity relationship. The PaymentAmountRemaining relationship type indicates that the payment mechanism specified in the related payment object should be used with any amounts for the item that are not covered by other payment objects related to the item.

[0027] For relationship objects that relate a shipping object and a payment object, the relationship type can be ShippingAmount or ShippingAmountRemaining. The ShippingAmount relationship type has a value representing the amount of payment for shipping costs from the related shipping object to be obtained from the payment mechanism specified in the related payment object. The ShippingAmountRemaining relationship type indicates that the payment mechanism specified in the related payment object should be used with any shipping costs that are not covered by other payment objects related to the item.

[0028] For relationship objects that relate a payment object and the order object, the relationship type can be OrderAmount, OrderPercentage, or OrderAmountRemaining. The OrderAmount relationship type has a value representing the amount of payment for the order to be obtained from the payment mechanism specified in the related payment object. The OrderPercentage payment type has a value representing the percentage of the cost of the order to be obtained from the specified payment mechanism. As with the relationship types for an item object, the OrderAmount and OrderPercentage types are given different priorities, for determining the amount allocated to each payment object if the payment objects related to the order specify more than the total amount for that order. For example, the OrderAmount relationship type may be given priority over the OrderPercentage type. Preferably, the relationship types relating to an item object are given priority over the relationship types relating to the order. The OrderAmountRemaining relationship type indicates that the payment mechanism specified in the related payment object should be used with any amounts for the order that are not covered by other payment objects related to the order, or to order-related objects, such as item objects and shipping objects.

[0029] If the order also can have relationships to shipping objects or other types of objects, then relationship types also are specified for those relationships. Where other objects are included in the order, analogous relationship types are included as appropriate. For example, for a cost center object, analogous relationship types to the types for relating a payment object would be provided. Optionally, a cost center object also could be related to a payment object. As another example, for a handling object, analogous relationship types to the types for relating a shipping object would be provided. Optionally, a handling object also could be related to a shipping object. In one embodiment, payments also can be allocated for other cost elements within the order, such as taxes. The relationships to the amount of taxes can be described using relationship types of TaxAmount and TaxAmountRemaining, which can relate the order to a payment object that will be used to pay for all or a portion of the taxes.

[0030] In one embodiment, the relationship type is identified by an integer value corresponding to the type. Thus, the relationship type 230 from FIG. 2 corresponds to a value from relationship type values table 300 in FIG. 3. As one example of a set of relationship types, in FIG. 3 a type value of 1 corresponds to a relationship type of ShippingQuantity, a type value of 2 correspond to a relationship type of ShippingQuantityRemaining, a type value of 3 corresponds to a relationship type of PaymentAmount, a type value of 4 corresponds to a relationship type of PaymentPercentage, a type value of 5 corresponds to a relationship type of PaymentQuantity, a type value of 6 corresponds to a relationship type of PaymentAmountRemaining, a type value of 7 corresponds to a relationship type of ShippingAmount, a type value of 8 corresponds to a relationship type of ShippingAmountRemaining, a type value of 9 corresponds to a relationship type of OrderAmount, a type value of 10 corresponds to a relationship type of OrderPercentage, a type value of 11 corresponds to a relationship type of OrderAmountRemaining, a type value of 12 corresponds to a relationship type of TaxAmount, and a type value of 13 corresponds to a relationship type of TaxAmountRemaining. Alternatively, each subclass of relationship objects can have a different set of relationship type values for the relationship types available for that subclass.

[0031] Preferably, amounts specified by a quantity or amount are treated as referring to up to that amount. So, for example, if the relationship type is ShippingQuantity, with a value of 5, and it relates to an item object that contains 4 units, then the relationship will include the 4 units in the item object. Or, as another example, if the relationship type is OrderAmount, with a value of $1000, and the total value of the order is $400 or the amount of the order not covered by relationships with specific item or shipping objects is $400, then the specified payment mechanism will be applied to the $400.

[0032] An example illustrating some of the above relationships is shown in FIG. 1. Order object 140 includes two item objects, 110 a and 110 b. Item object 110 a has 5 units and item object 110 b has 2 units. Order 140 also includes 2 shipping objects, 120 a and 120 b; three payment objects, 130 a through 130 c; and 8 relationship objects, 150 a through 150 h.

[0033] Shipping object 120 a provides a shipping method for 3 of the items from item object 110 a, as indicated by the (3) in relationship object 150 a in FIG. 1. Relationship object 150 a has a relationship type of ShippingAmount, with a value of 3. Shipping object 120 b provides a shipping method for the other 2 items from item object 110 a, as indicated by relationship object 150 b, in which the (*) indicates that the relationship type is ShippingAmountRemaining. Shipping object 120 b also provides a shipping method for the 2 items from item object 110 b, as indicated by relationship object 150 c, which has a relationship type of ShippingAmount, with a value of 2. For shipping methods, shipping object 120 a may provide, for example, for standard shipping to a first address, while shipping object 120 b provides for overnight delivery to a second address. Or, shipping object 120 a and shipping object 120 b could refer to the same shipping method, but to different addresses, or the two shipping objects could refer to the use of two different shipping methods directed to the same address.

[0034] Fifty percent of the cost of the items from item object 110 a are to be paid using payment object 130 a, as indicated by relationship object 150 e. Relationship object 150 e has a relationship type of PaymentPercentage, with a value, as indicated, of 50%. The remaining 50% of the cost of the item in item object 110 a is not specified by a relationship between item object 110 a and a payment object, and is therefore covered by payment object 130 b, which relates to the order (order object 140) through relationship object 150 g. The (*) in relationship object 150 g indicates a relationship type of OrderAmountRemaining, for which a value is not designated. All of the cost of the 2 items in item object 110 b is provided by the payment mechanism specified in payment object 130 a, as indicated by relationship object 150 d. The (*) in relationship object 150 d indicates that it has a relationship type of PaymentAmountRemaining. Alternatively, a relationship type of PaymentAmount could be used. However, if the intent were to have payment object 130 a cover all of the costs of the units in item object 110 b, then using a PaymentAmountRemaining or a PaymentPercentage (with a value of 100%) relationship type would ensure that payment object 130 a covers all of the costs even if the number of units in item object 110 b is increased or the price changes.

[0035] The shipping costs for the 2 items from item object 110 a and the items from item object 110 b that are shipped using the shipping method specified in shipping object 120 b are provided by the payment mechanism specified in payment object 130 a, as indicated by relationship object 150 f. Relationship object 150 f has a relationship type of ShippingAmountRemaining, as indicated by the (*). The shipping costs for the 3 items from item object 110 a that are shipped using the shipping method specified in shipping object 120 a are provided by payment mechanism 130 c, as indicated by relationship object 150 h. In this example, relationship object 150 h also has a relationship type of ShippingAmountRemaining.

[0036] Preferably, defaults are provided for shipping and payment, so that a shipping method and a payment mechanism are provided if no particular relationship is specified. In one embodiment, when an order is created a default shipping object and a default payment object are created. Unless an additional shipping object is created, all items will be assigned to the default shipping object. Similarly, unless an additional payment object is created, all items will be assigned to the default payment object.

[0037] In one embodiment, before an order can be processed, all items in the order must be fully related to a shipping object and a payment object (either directly or through the order object). This may be determined according to the following set of rules. (1) If the order contains only one shipping object (or payment object) with no defined relationships, then all items are related to that shipping object (or payment object). (2) If the order contains more than one shipping object (or payment object) then either (a) all items must have a relationship to at least one shipping object (or payment object) and all quantities must be accounted for shipping for each item (or the total amount for each item must be accounted for); or (b) order level relationships must account for the shipping (or payment) of the entire order, or as much of the order that is not accounted for at the item level. (3) The total cost of the tax must be accounted for through one or more payment objects. (4) The total cost of all shipping objects must be accounted for through one or more payment objects.

[0038] In order to be accounted for, the following rules may apply in one embodiment, in which the order processing system does not permit shipping to be related to an order. The rules may be applied sequentially in the order listed.

[0039] As illustrated in FIG. 4, a determination of whether shipping is accounted for begins with step 410. At step 420, if an item has a relationship of type ShippingQuantityRemaining, then the item is accounted for (step 430), regardless of whether it has other shipping relationships. At step 440, if an item has one or more relationships of type ShippingQuantity and the sum of the quantities for those relationships is equal to or greater than the quantity of the item, then the item is accounted for (step 430). If none of the above, the item is not accounted for (step 450).

[0040] An illustration of steps for determining whether payment for an item or an order is accounted for is shown in FIGS. 5a and 5 b. As shown in FIG. 5a, the analysis of an item begins with step 510. At step 515, if an item has a relationship of type PaymentAmountRemaining, then the item is accounted for (step 520) regardless of whether it has other payment relationships. If an item has one or more relationships of type PaymentQuantity and the sum of the quantities of those relationships is equal to or greater than the quantity of the item (the test at step 525), then the item is accounted for. If an item has one or more relationships of type PaymentAmount and the sum of the amounts of those relationships is equal to or greater than the amount of the item (the test at step 530), then the item is accounted for. If an item has one or more relationships of type PaymentPercentage and the sum of the percentages is at least 100% (the test at step 535), then the item is accounted for. At step 540, if the item has a combination of any of the payment relationship types and the combination covers the entire amount of the item, then the item is accounted for. If not, then the item is not accounted for (step 545), subject to an analysis of the order relationships, as illustrated in FIG. 5b.

[0041] The analysis of the relationships to the order begins with step 550. At step 555, if an order contains a relationship of type OrderAmountRemaining, then the payment for the order (including each of the items) is accounted for (step 560). If an order contains one or more relationships of type OrderAmount and the sum of the amounts of those relationships is equal to or greater than the amount of the order (the test at step 565), then the order is accounted for. If an order contains one or more relationships of type OrderPercentage and the sum of the percentages is at least 100% (the test at step 570), then the order is accounted for. If the order has a combination of the order payment relationship types and the combination covers the amount of the order (the test at step 575), then the order is accounted for. If the order has a combination of the order payment relationship types and the combination covers the amount of the order that is not accounted for by relationships with items (the test at step 580), then the order is accounted for. Otherwise, the order is not accounted for (step 585).

[0042] Other order-related objects can be accounted for in similar ways. For example, if taxes can be treated separately, then the tax portion is accounted for if the order contains a relationship of type TaxAmountRemaining. If an order contains one or more relationships of type TaxAmount and the sum of the amounts of those relationships is equal to or greater than the amount of the taxes, then the tax portion is accounted for. Also, the tax portion can be accounted for if the order contains a relationship of type OrderAmountRemaining, or the order otherwise is completely accounted for. Testing the TaxAmountRemaining and TaxAmount relationships can be performed either before or after testing whether the Order overall is accounted for.

[0043] In one embodiment, an item object can have only one relationship with a type of ShippingQuantityRemaining and only one relationship with a type of PaymentAmountRemaining. Alternatively, the order processing system can permit more than one “______Remaining” relationship of a certain type, with the goods (or amount) divided among the designated objects. Similar restrictions may be applied with the other “______Remaining ” relationship types.

[0044] A user interface allows the user to create and select default and additional shipping methods and payment mechanisms. In a preferred embodiment, the user selects where to ship goods and how to pay for goods (or uses the defaults), but the underlying relationship structure is transparent to the user. The user is able to add or remove items from a particular shipping method or payment mechanism, to change the items within an order, and otherwise to alter the order. As long as the order remains accounted for, an order can be modified without revising relationships that have been established.

[0045] When an item object is related to more than one of a particular type of object, each of that type of object is assigned to specific units within the item. In one embodiment, the units are assigned, by default, according to a priority of the methods or mechanisms. Preferably, the buyer is able to make or change the assignments. This can be useful where, for example, the price varies depending on the quantity purchased. An example is a situation where if the user buys 2 units at the regular price, the user gets a third item at a 50% discount. Using relationship types of PaymentQuantity, the buyer may assign two items to one payment mechanism and a third item to another payment mechanism. By determining which items are assigned to which payment mechanism, the buyer is able to select where the discount will be applied. Similarly, the buyer may want to assign the discounted unit to a specific cost center.

[0046] The order processing system may be implemented using software running on a server. In one embodiment, the software is written in Java; however, other software languages could be used. The functionality may be provided as a separate order processing module or integrated as part of an e-business system, such as the Dynamo suite from Art Technology Group of Cambridge, Mass. The order processing software may be provided on any suitable storage device, such as a CD-ROM or magnetic disk (hard disk or floppy), or may be transferred electronically (such as over the Internet).

[0047] While there have been shown and described examples of the present invention, it will be readily apparent to those skilled in the art that various changes and modifications may be made without departing from the scope of the invention as defined by the following claims. For example, additional or alternative order-related objects can be used, as appropriate for a specific application. Also, additional or alternative relationship types may be used as appropriate. Accordingly, the invention is limited only by the following claims and equivalents thereto. 

What is claimed is:
 1. A method for structuring an order, comprising the steps of: creating a plurality of order-related objects including a plurality of a first type of object representing a first aspect of an order; and a plurality of a second type of object representing a second aspect of an order; and establishing a plurality of relationships between the plurality of a first type of object and the plurality of a second type of object.
 2. The method of claim 1, wherein the step of creating a plurality of order-related objects includes creating one or more of a third type of object representing a third aspect of an order; the method further comprising the step of establishing a plurality of relationships between the plurality of a first type of object and the one or more of a third type of object.
 3. The method of claim 2, further comprising the step of establishing a plurality of relationships between the plurality of a second type of object and the one or more of a third type of object.
 4. The method of claim 2, wherein the step of establishing a plurality of relationships between the plurality of a first type of object and the plurality of a second type of object includes establishing at least one relationship that is independent of the plurality of relationships between the plurality of a first type of object and the one or more of a third type of object.
 5. The method of claim 1, wherein the step of creating a plurality of a first type of object includes creating a plurality of item objects.
 6. The method of claim 5, wherein the step of creating a plurality of a second type of object includes creating a plurality of shipping objects.
 7. The method of claim 5, wherein the step of creating a plurality of a second type of object includes creating a plurality of payment objects.
 8. The method of claim 5, wherein the step of creating a plurality of a second type of object includes creating a plurality of cost center objects.
 9. The method of claim 1, further comprising the steps of creating an order object and establishing a relationship between the order object and at least one of the order-related objects.
 10. A computer program product, residing on a computer-readable medium, for use in structuring an order, the computer program product comprising instructions for causing a computer to: create a plurality of objects of a plurality of types, each of the plurality of types representing an aspect of an order; and establish relationships between groups of the plurality of objects, wherein each group includes objects of different types, and wherein each relationship includes an identifier of each object in the group and an identifier of a relationship type.
 11. A computer program product, residing on a computer-readable medium, for use in structuring an order, the computer program product comprising instructions for causing a computer to: create one or more of a first type of object, the first type of object representing a first aspect of an order; create one or more of a second type of object, the second type of object representing a second aspect of an order; establish relationships between objects of the first type and objects of the second type; establish relationships between objects of the first type and objects of the third type; and establish relationships between objects of the second type and objects of the third type.
 12. The computer program product of claim 11, wherein the first type of object includes an item object.
 13. The computer program product of claim 12, wherein the second type of object includes a payment object.
 14. The computer program product of claim 12, wherein the second type of object includes a shipping object.
 15. The computer program product of claim 11, further comprising instructions for causing a computer to create an order object.
 16. The computer program product of claim 11, further comprising instructions for causing a computer to establish a default object of the second type for use if no objects of the second type are created.
 17. The computer program product of claim 11, further comprising instructions for causing a computer to verify that an order is fully related to one or more objects of the second type.
 18. A computer program product, residing on a computer-readable medium, for use in defining a relationship between a first type of object representing a first aspect of an order and a second type of object representing a second aspect of an order, the computer program product comprising instructions for causing a computer to create a data structure comprising: an identifier of an object of the first type; is an identifier of an object of the second type; an identifier of a relationship type; and an identifier of a relationship quantity, wherein the identifier of an object of the first type and the identifier of an object of the second type identify the objects being related.
 19. The computer program product of claim 18, wherein the identifier of a relationship quantity signifies a specific value for the extent of the relationship.
 20. The computer program product of claim 18, wherein the identifier of a relationship quantity represents a remainder value for the extent of the relationship.
 21. The computer program product of claim 18, wherein the identifier of a relationship type signifies that the relationship is for an amount remaining after one or more other relationships are satisfied.
 22. The computer program product of claim 18, wherein the identifier of a relationship quantity signifies a maximum value for the extent of the relationship.
 23. An ordering system comprising: a user interface permitting a user to select items to be included in an order, one or more destinations for delivering the items in the order, and one or more payment mechanisms for paying for the order; and an order processing module programmed to: provide representations of the items in an order, the one or more destinations to which the items are to be delivered, and the one or more payment mechanisms for paying for the order; establish relationships between individual of the representations of items and individual of the representations of destinations; and establish relationships between individual of the representations of items and individual of the representations of payment mechanisms, wherein the relationships between individual of the representations of items and individual of the representations of destinations are independent of the relationships between individual of the representations of items and individual of the representations of payment mechanisms.
 24. The ordering system of claim 23, wherein each relationship includes an identifier of a relationship type. 